
import actionCreators from 'store/select/actionCreactors'

import {connect } from 'react-redux'

import {bindActionCreators} from 'redux'

//这边必须传递一个UI组件过来  否则会报错 
const getSelect = (UIcomponent) => {
    return connect(
        state =>state.select,
        dispatch=>{ return bindActionCreators(actionCreators,dispatch)}
    )(UIcomponent)

}

export default getSelect